package com.java.text;

import java.lang.reflect.Method;
import java.util.Scanner;

public class TestRelection2 {
	public static void main(String[] args) {
		test01();
	}

	public static void test01() {
		Scanner sc = new Scanner(System.in);
		System.out.println("输出类的全名：");
		String str = sc.nextLine();
		dothing(str);

	}

	public static void dothing(String className) {
		try {
			Class c = Class.forName(className);
			Method[] m = c.getMethods();
			for (int i = 0; i < m.length; i++) {
				System.out.println(m[i].toString());
			}
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
}
